<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    
    <%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
    <%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<h1> Spring 3 _ Hibernate  : CM </h1>
<hr/>
<table width="100%">
<tr>
<td>WELCOME : </td>
<td align="right"><a href="logout.htm">Log out</a></td>
</tr>
</table>
<hr/>

<form:form action="updateContact.htm" commandName="editCont" >
<table>



<tr>
<td>ID:</td>
<td><form:input path="contSNo" readonly="true"/></td>
</tr>



<tr>
<td>Name:</td>
<td><form:input path="contName" /></td>
</tr>


<tr>
<td>Email:</td>
<td><form:input  path="contEmail"/></td>
</tr>


<tr>
<td>Mobile:</td>
<td><form:input path="contMobile"/></td>
</tr>



<tr>
<td>DOB:</td>

<fmt:formatDate var="fd" value="${editCont.contDOB}" pattern="MM/dd/yyyy"/>

<td><input type="text" name="contDOB" value="${fd}"/>(MM/dd/yyyy)</td>
</tr>



<tr>
<td>Address:</td>
<td><form:textarea path="contAddress" rows="5" cols="35"></form:textarea></td>
</tr>

<tr>
<td></td>
<td><input type="submit" value="Update Contact"/><td>
</tr>

</table>

</form:form>


<br/>

<hr/>

<!-- Shoe User;s Existing Contacts -->



</body>
</html>